﻿@model GPS.Models.UserDetails

@{
    ViewBag.Title = "View2";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>View2</h2>
<div>
    @if (Request.IsAuthenticated )
    {
        <p>该用户已经登录，登录名:@Context.User.Identity.Name</p>
    }
    else
    {
        <p>该用户还没有登录</p>
    }



    <p>
       名字: @Model.UserName
    </p>
    <p>
       密码：@Model.PassWord
    </p>
    <p>
    </p>
</div>


<div>
    @using (Html.BeginForm("test2", "Test", FormMethod.Post))
    {
        @Html.AntiForgeryToken()
        @ViewBag.Notice
        @:网站公告:<input type="text" name="Notice" id="Notice" />
        <input type="submit" value="Submit" />
    }  
</div>






